package Dome3;

import java.util.ArrayList;

public class Text3 {
    public static void main(String[] args) {

        ArrayList<Integer> arraylist = new ArrayList<>();
        arraylist.add(1);
        arraylist.add(100);
        arraylist.add(0);
        arraylist.remove(0);
        System.out.println(arraylist);//删除的是下标为0的元素
        arraylist.remove(new Integer(0));
        System.out.println(arraylist);//删除的是元素0

    }
}
